package com.burgeon.backend.Util;

/**
 * 首页banner连接生成
 */
public class BannerLink {

    public static String getBannerLink(String mages) {

        String INTEGRALhyzx = "/pages/category/jifenMall/jifenMall?id=1&name=会员专享";
        String INTEGRALjfsh = "/pages/category/jifenMall/jifenMall?id=3&name=积分生活";
        String INTEGRALjfhg = "/pages/category/jifenMall/jifenMall?id=4&name=积分换购";
        String ACTIVITYxp = "/pages/category/stateCategory/stateCategory?name=新品";
        String ACTIVITYxj = "/pages/category/stateCategory/stateCategory?name=现金";
        String MSZQ = "/seckill/pages/seckillList/seckillList";

        switch (mages) {
            case "会员专享":
                return INTEGRALhyzx;
            case "积分生活":
                return INTEGRALjfsh;
            case "积分换购":
                return INTEGRALjfhg;
            case "新品上市":
                return ACTIVITYxp;
            case "活动专区":
                return ACTIVITYxj;
            case "秒杀专区":
                return MSZQ;


        }

        return "";
    }

    public static String getBannerGoodsLink(String id) {

        String PRODUCT = "/pages/product/productDetail/productDetail?id=";
        return PRODUCT + id;
    }

    public static String getBannerClassifyLinke(String id) {
        String CALSSIFY = "/pages/category/category?id=";
        return CALSSIFY + id;
    }

    public static String getBannerClassityItemLink(String id, String iid) {

        return "/pages/category/category?id=" + id + "&iid=" + iid;

    }

    public static String getBrandLink(String id) {
        return "/pages/category/category?bid=" + id;
    }

}
